<link rel="stylesheet" type="text/css" href="__TEMP__/{$style}/public/css/goods_detail.css">
<link rel="stylesheet" type="text/css" href="__TEMP__/{$style}/public/css/detail.css">
<link rel="stylesheet" type="text/css"
	href="__TEMP__/{$style}/public/css/showbox.css">
<script src="__TEMP__/{$style}/public/js/showBox.js"></script>
<style>
	.custom-tag-list .joinz-index{
		z-index: 7;
	}
	.s-buy{
		z-index: 8;
	}
</style>
<div class="success-tip-line" id="success_tip_line" style="display: none;">成功加入购物车！</div>
	<span class="" id="addcart_way" style="display: none;"><i></i></span>
<section class="s-buy" id="s_buy" >
		<div class="popup"  id="popup" style="-webkit-border-radius:3px;-moz-border-radius:3px;-o-border-radius:3px;border-radius:3px;display: none"></div>
			<ul class="s-buy-ul">
				<li class="s-buy-pro">
					<span class="pro-img">
						<input type="hidden" id="default_img" value="{$goods_detail['img_list'][0]['pic_id']}" />
						<img src="__ROOT__/{$goods_detail['img_list'][0]['pic_cover_micro']}" >
					</span>
					<div class="pro-info">
						<p class="name" id="itemName">{$goods_detail.goods_name}</p>
						<p class="pro-price" id="price">￥{$goods_detail.promotion_price}</p>
					</div>
					<i class="icon-close" id="icon_close"></i>
				</li>
			</ul>
			<hr class="with-margin-l" />
			<ul class="s-buy-ul specification" id="specification">
				{foreach name="goods_detail['attribute_list']" item="pro_prop" key="k"}
				<li class="s-buy-li" >
					<div class="left">{$pro_prop.attr_name}：</div>
					<div class="right" name="specvals" >
					{foreach name="goods_detail['attribute_value_list']" item="pro_propvalue"}
						{if condition="$pro_propvalue['attr_id'] eq $pro_prop['attr_id']"}
							<button class="select" name="Span{$k}" id="{$pro_prop.attr_id}:{$pro_propvalue.attr_value_id}" onclick="change(this);">
							{$pro_propvalue.attr_value}
							</button>
						{/if}
					{/foreach}
					</div>
				</li>
				<hr class="with-margin-l" />
				{/foreach}
				{foreach name="goods_detail['sku_list']" item="pro_skus" key="k"}				
				<input type="hidden" id="goods_sku{$k}" value="{$pro_skus.attr_value_items};" stock="{$pro_skus.stock}" {if condition = "$goods_detail['promotion_info'] neq ''"} price="{$pro_skus.promote_price}" {else/} price="{$pro_skus.price}"{/if} skuid="{$pro_skus.sku_id}" skuname="{$pro_skus.sku_name}">
				{/foreach}
				<input type="hidden" id="goods_sku_num" value="100">
				<li class="s-buy-li">
					<div class="left" style="float:left;">购买数量：</div>
					<div class="right">
						<span class="reduce quantity-minus-disabled">-</span>
						<input class="number" name="quantity" autocomplete="off" value="1" min="1" max="{$goods_detail.stock}" id="num">
						<span class="add">+</span>
						<input id="hiddPDetailID" type="hidden" name="name" value="{$goods_detail.goods_id}">
						<input id="hiddSkuId" type="hidden" name="name" value="">
						<input id="hiddSkuName" type="hidden" name="name" value="">
						<input id="hiddSkuprice" type="hidden" name="name" value="">
					</div>
					<span style="display: inline-block;margin-top:5px;color:#333;" id="Stock">剩余{$goods_detail.stock}件</span>
					{if condition ="$goods_detail['max_buy'] neq '0' AND $goods_detail['max_buy'] neq -1"}
					<span style="display: inline-block;margin-top:5px;color:#333;">限购{$goods_detail['max_buy']}件</span>
					{/if}
				</li>
			</ul>
			<ul class="s-buy-ul">
				<li class="s-buy-btn">
					<a class="btn" id="submit_ok" tag="addCart">确定</a>
				<input type="hidden" id="hidden_shop_name" value="{$goods_detail.shop_name}"/>
				<input type="hidden" id="hidden_shop_id" value="{$goods_detail.shop_id}"/>
				</li>
			</ul>
		</section>
		<div class="motify" style="display: none;"><div class="motify-inner">请选择 颜色</div></div>
		<input type="hidden" id="max_buy" value="{$goods_detail.max_buy}" />
			<input type="hidden" id="heima_module" value="APP_MAIN" />
<div class="mask joinz-index" id="mask" style="display: block;"></div>
<script type="text/javascript">	
var heima_module = 'APP_MAIN';
	
</script>
<script src="__TEMP__/{$style}/public/js/product.js"></script>